package com.yss.kettle.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yss.common.core.annotation.EasyExcel;
import com.yss.common.core.utils.easyexecl.IntegerConverter;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.yss.common.core.web.domain.BaseEntity;

/**
 * kettle参数信息对象 kettle_job_param
 *
 * @author yss
 * @date 2023-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("kettle_job_param" )
public class JobParam extends BaseEntity {

    /**
     * 主键
     */
    @ExcelIgnore
    @TableId("ID" )
    private String id;

    /**
     * 英文名称
     */
    @ExcelProperty(value = "英文名称" )
    @TableField("KEY_NAME" )
    private String keyName;

    /**
     * 中文名称
     */
    @ExcelProperty(value = "中文名称" )
    @TableField("CHINESE_NAME" )
    private String chineseName;

    /**
     * 参数类型1.无2.字典，3sql
     */
    @ExcelProperty(value = "参数类型1.无2.字典，3sql" )
    @TableField("FTYPE" )
    private Integer ftype;

    /**
     * 数据类型 1.字符串2，整数，3.布尔 4.年月日 5.日期
     */
    @ExcelProperty(value = "数据类型 1.字符串2，整数，3.布尔 4.年月日 5.日期" )
    @TableField("DATATYPE" )
    private Integer datatype;

    /**
     * 是否必填
     */
    @ExcelProperty(value = "是否必填" )
    @TableField("REQUIRED" )
    private Integer required;

    /**
     * 默认值
     */
    @ExcelProperty(value = "默认值" )
    @TableField("DEFAULT_VALUE" )
    private String defaultValue;

    /**
     * 顺序
     */
    @ExcelProperty(value = "顺序" )
    @TableField("ORDER_NUM" )
    private Integer orderNum;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = IntegerConverter.class)
    @EasyExcel(readConverterExp = "1=正常,2=停用")
    @TableField("STATUS" )
    private Integer status;

}
